package util;

import org.testng.annotations.Test;

public class UtilTest {

    @Test
    private void t1() {
        int[] a = new int[]{2130000000, 1130000000, 10000};
        var s = new Schedule(a);
        int s1 = 0;
        int s2 = 0;
        int s3 = 0;
        for (int i = 0; i < 100; i++) {
            int index = s.pickIndex();
            if (index == 0) {
                s1++;
            } else if (index == 1) {
                s2++;
            } else if (index == 2)
                s3++;
        }

        // -2084967296
        int ss = 2130000000 + 80000000;

        System.out.println(s1 + ", " + s2 + ", " + s3);
        System.out.println(ss);
    }
}
